package com.shanzhu.volunteer.interfaces.vo.system.user.converter;

import com.github.pagehelper.Page;
import com.shanzhu.volunteer.interfaces.vo.system.user.UserVo;
import com.shanzhu.volunteer.modules.system.entity.model.SysUser;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 用户对象装换器
 *
 * @author: ShanZhu
 * @date: 2023-03-04 16:24:16
 */
@Mapper
public interface UserVoConverter {

    UserVoConverter INSTANT = Mappers.getMapper(UserVoConverter.class);

    /**
     * {@link SysUser} -> {@link UserVo}
     */
    UserVo sysUserToUserVo(SysUser sysUser);
    Page<UserVo> sysUserToUserVo(List<SysUser> sysUser);

}

  